import 'package:json_annotation/json_annotation.dart';
import 'package:xindong/models/chat_message/xindong_signal_message.dart';
import 'package:xindong/routes/call/controller/xindong_call_controller.dart';

part 'xindong_signal_call_class.g.dart';

@JsonSerializable()
class XinDongSignalCallClass {
  late int code;
  late String action;
  late XinDongSignalCallDataClass data;

  XinDongSignalCallClass();

  factory XinDongSignalCallClass.fromJson(Map<String, dynamic> json) => _$XinDongSignalCallClassFromJson(json);

  Map<String, dynamic> toJson() => _$XinDongSignalCallClassToJson(this);
}

@JsonSerializable()
class XinDongSignalCallDataClass {
  late String user_id;
  late String another_id;
  late String types;
  late String name;
  late String orderid;

  XinDongSignalCallDataClass();

  factory XinDongSignalCallDataClass.fromJson(Map<String, dynamic> json) => _$XinDongSignalCallDataClassFromJson(json);

  Map<String, dynamic> toJson() => _$XinDongSignalCallDataClassToJson(this);
}
